package com.gaokao.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gaokao.demo.entity.SysUser;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author szs
 * @since 2021-01-22
 */
public interface IUserService extends IService<SysUser> {

    boolean existUser(String username);

    SysUser findUserByUserName(String username);

    IPage<SysUser> getUserList(Integer page, Integer limit, String username, Integer status, String roleId);

    boolean deleteUserById(String id);

    boolean updateUser(SysUser sysUser);

    boolean addUser(SysUser sysUser);
}
